﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Runtime.InteropServices.JavaScript.JSType;

namespace Apps.Model.Models
{
    /// <summary>
    /// 系统登录日志表
    /// </summary>
    [Table("Sys_LogininFor")]
    public class SysLogininFor : IEntity<int>
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]

        public int Id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 用户账号
        /// </summary>
        [StringLength(30)]
        public string UserName { get; set; }

        /// <summary>
        /// 登录IP地址
        /// </summary>
        [StringLength(20)]
        public string IPAddr { get; set; }

        /// <summary>
        /// 登录地点
        /// </summary>
        [StringLength(150)]
        public string? LoginLocation { get; set; }

        /// <summary>
        /// 浏览器类型
        [StringLength(50)]
        /// </summary>
        public string? Browser { get; set; }

        ///<summary>
        /// 操作系统
        /// </summary>
        [StringLength(30)]
        public string? OS { get; set; }

        /// <summary>
        /// 登录状态（0成功 1失败）
        /// </summary>
        public int Status { get; set; }


        /// <summary>
        /// 提示消息
        /// </summary>
        [StringLength(200)]
        public string Msg { get; set; }
        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime LoginTime { get; set; }

    }
}
